#include<iostream>
#include<numeric>
#include<iterator>
int main(void){
 using namespace std;
 istream_iterator<int> in(cin), eof;
 cout<<accumulate(in,eof,0)<<endl;//ctrl+d 才会显示
 cout<<flush;
 return 0;
}
